package net.yla.smartbus.module.ba.right.admin.mapper;

import net.yla.smartbus.module.ba.right.admin.entity.AdminDO;
import net.yla.smartbus.module.ba.right.admin.query.AdminCount;
import net.yla.smartbus.module.ba.right.admin.query.AdminQuery;
import net.yla.smartbus.module.ba.right.admin.query.IPCount;
import net.yla.smartbus.module.ba.right.admin.query.SaveQuery;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.Fixed1ArgFunction;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Date: 2020-08-17 9:58
 * @Author: Being Nobody
 * @Version: 1.0
 */
@Repository
public interface AdminMapper {
    int deleteByPrimaryKey(Integer adminId);

    int insert(AdminDO record);

    int insertSelective(AdminDO record);

    AdminDO selectByPrimaryKey(Integer adminId);

    int updateByPrimaryKeySelective(AdminDO record);

    int updateByPrimaryKey(AdminDO record);

    List<AdminDO> admin(@Param("query") AdminQuery query);

    int countByQuery(AdminCount query);

    AdminDO selectByLoginId(String loginId);

    int delAdmin(Integer id);

    AdminDO checkLoginId(Integer id, String loginId);
}